public class test
{
public static void main(String[] args) {
    double[] array=new double[5];
    for(int i=0;i<array.length;i++){
        array[i]=Math.random()*100;
    }
    System.out.println("原数组：");
    for (int i=0;i<array.length;i++){
        System.out.println(array[i]);
    }
    System.out.println("最大值："+maxmin.getresult(array).getMax());
    System.out.println("最小值："+maxmin.getresult(array).getMin());
}
}
